package cn.edu.sdjzu.xg.eagle.entity;

import lombok.*;

import java.io.Serializable;
import java.time.LocalDateTime;


@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@ToString
public class User implements Comparable<User>, Serializable {
    private Long id;
    private String username;
    private String password;
    private String no;
    private Teacher teacher;
    private LocalDateTime lastLoginTime;

    public User(Long teacherId, String no, String username, Teacher teacher) {
        this.id = teacherId;
        this.no = no;
        this.username = username;
        this.teacher = teacher;
    }

    @Override
    public int compareTo(User o) {
        return 0;
    }
}

